﻿{layout:simple} {class:Shop.supplier.product.subproduct_list}
<lbbody>
<%foreach (Shop.Model.Lebi_Product model in models)
    {%>
<tr class="list" ondblclick="Editsonproduct(<%=model.id %>);">
    <td style="text-align:center">
        <input type="checkbox" shopkeyid="true" name="sonproductid" value="<%=model.id %>"
            id="<%=model.id %>" />
    </td>
    <td>
        <%if (model.ImageOriginal != "")
        {%><a href="<%=Image(model.ImageOriginal," big") %>" data-lightbox="image-list"><img style="height: 30px; width: 30px; vertical-align: middle" src="<%=Image(model.ImageOriginal," small") %>" /></a><%}else{%>&nbsp;<%} %>
    </td>
    <td>
        <input type="text" name="Number<%=model.id %>" id="Number<%=model.Number %>" class="input"
            sonproduct="true" value="<%=model.Number %>" style="width: 100px;" />
    </td>
    <td>
        <%=getproperty(model.ProPerty131) %>
    </td>
    <td>
        <a href="javascript:void(0)" title="<%=Tag("点击编辑商品名称")%>" onclick="Product_Name_Edit(<%=model.id %>);">
            <%if (Shop.Bussiness.Language.Content(model.Name, CurrentLanguage.Code) != "") { Response.Write(Shop.Bussiness.Language.Content(model.Name, CurrentLanguage.Code)); } else { Response.Write(Tag("编辑")); }%></a>&nbsp;<%if (pid > 0){%><a target="_blank" href="<%=Shop.Bussiness.ThemeUrl.GetURL("P_Product",model.id.ToString(),"",CurrentLanguage)%>"><img src="<%=PageImage("icon/newWindow.png")%>" /></a><%} %>
    </td>
    <td>
        <input type="text" name="Price_Market<%=model.id %>" id="Price_Market<%=model.id %>" class="input" sonproduct="true" value="<%=FormatMoney(model.Price_Market,"Number") %>" style="width: 80px;" onkeyup="value=value.replace(/[^\d\.]/g,'')" />
    </td>
    <td>
       <%if (CurrentSupplierGroup.IsSubmit == 0)
         { %>
        <%=FormatMoney(model.Price) %>
        <%}
         else
         { %>
        <input type="text" name="Price<%=model.id %>" id="Price<%=model.id %>" class="input"
            sonproduct="true" value="<%=FormatMoney(model.Price,"Number") %>" style="width: 80px;" onkeyup="value=value.replace(/[^\d\.]/g,'')" />
        <%} %>
    </td>
    <td>
        <input type="text" name="Price_Cost<%=model.id %>" id="Price_Cost<%=model.id %>"
            class="input" sonproduct="true" value="<%=FormatMoney(model.Price_Cost,"Number") %>" style="width: 80px;"
            onkeyup="value=value.replace(/[^\d\.]/g,'')" />
    </td>
    <td>
        <input type="text" name="Count_Stock<%=model.id %>" id="Count_Stock<%=model.id %>"
            class="input" sonproduct="true" value="<%=model.Count_Stock %>" style="width: 80px;"
            onkeyup="value=value.replace(/[^\d]/g,'')" />
    </td>
    <td>
       <%if (CurrentSupplierGroup.IsSubmit == 0)
         { %>
        <%=model.Count_Freeze%>
        <%}
         else
         { %>
        <input type="text" name="Count_Freeze<%=model.id %>" id="Count_Freeze<%=model.id %>"
            class="input" sonproduct="true" value="<%=model.Count_Freeze %>" style="width: 80px;"
            onkeyup="value=value.replace(/[^\d]/g,'')" />
        <%} %>
    </td>
    <td>
        <%=model.Count_Sales %>
    </td>
    <td>
        <input type="text" name="Count_Sales_Show<%=model.id %>" id="Count_Sales_Show<%=model.id %>" class="input" sonproduct="true" value="<%=model.Count_Sales_Show %>" style="width: 50px;" onkeyup="value=value.replace(/[^\d]/g,'')" />
    </td>
    <td>
        <%=Shop.Bussiness.EX_Type.TypeName(model.Type_id_ProductStatus,CurrentLanguage.Code)%>
    </td>
    <td>
        <a href="prodcut_edit.aspx?id=<%=model.id %>"><%=Tag("编辑")%></a>
    </td>
</tr>
<%} %>
</lbbody>